Design Notes for the cache spec

Various parts of this application deal with temporary files 
= a coherant method for managing these is required.


examples of use are:

Web / Help browser
 - stores files in there : 
 - all files are written to cache even if they are not to be cached.
 - this is due to the reload trick on the browser.
 - rules on deletion are supposed to be:
   - no cache - dont cache.
   - expiry date: 
 - 


Midgard and SCP transports :
 - all files are transfered to a local machine and edited locally.
 - need to check modification dates of transfered data.
 - 
 
 
 
 

Deleting files :
  - if they have expired
  - if the owning process has completed and it's taged as temp!
  
  
Storage format:

URL: string (key)
open_pid : process id of opening application
expires: int TIMESTAMP
delete_on_close: 1|0 - whether file should be deleted on closing.
temp_name: actual name of temporary file


n